public class TreeObject {

  static final char BROWSE_NODE = 'b';
  static final char CORPUS_NODE = 'c';
  static final char ITEM_NODE = 'i';
  static final char QUERY_NODE = 'q';
  static final char ROOT_NODE = 'r';
  static final char SIMILAR_NODE = 's';

  public TreeObject(String labelIn, char typeIn) {
    label = labelIn;
    type = typeIn;
  }

  public char getType() {
    return type;
  }

  public String toString() {
    return label;
  }

  private String label;

  private char type;
}
